import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/user_cancel_entity.dart';

UserCancelEntity $UserCancelEntityFromJson(Map<String, dynamic> json) {
  final UserCancelEntity userCancelEntity = UserCancelEntity();
  final int? state = jsonConvert.convert<int>(json['state']);
  if (state != null) {
    userCancelEntity.state = state;
  }
  return userCancelEntity;
}

Map<String, dynamic> $UserCancelEntityToJson(UserCancelEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['state'] = entity.state;
  return data;
}

extension UserCancelEntityExtension on UserCancelEntity {
  UserCancelEntity copyWith({
    int? state,
  }) {
    return UserCancelEntity()
      ..state = state ?? this.state;
  }
}